package com.gxa.ehome.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Category implements Serializable {
    private Integer id;
    private String name;
    private String pname;
    private Integer pid;

    private List<Goods> goodsList=new ArrayList<>();

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getPname() {
        return pname;
    }

    public Integer getPid() {
        return pid;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pname='" + pname + '\'' +
                ", pid=" + pid +
                ", goodsList=" + goodsList +
                '}';
    }
}
